package com.unknowpupil.web.base;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @Classname: AbstractBaseDomain
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2019/9/28 16:24
 * @Description:  通用给的邻域模型
 * @Version: 1.0
 */
@Getter
@Setter
public abstract class AbstractBaseDomain implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date created;
    /**
     * 北京时间=GMT时间+8小时。GMT:格林尼标准时间
     * GMT 东八区 北京时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updated;

    /**
     * 删除标记1.正常 0.删除 del_flag
     */
    @Column(name = "del_flag")
    private Integer delFlag = 0;
    /**
     * 状态 ： 0正常 1禁用
     */
    @Column(name = "`status`")
    private Integer status = 0;

    private String remark;




}
